package com.nyist.springcloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @author yangxiaogen
 * @date 2021/1/21 13:44
 */
@SpringBootApplication
@MapperScan("com.nyist.springcloud.dao")
//@EnableEurekaClient  这个注解只能为 eureka 提供注册发现
//@EnableEurekaClient
// @EnableDiscoveryClient  这个注解能为多种服务注册机制提供服务发现, 所以在实际的生产开发环境中, 使用到的是此注解在client端
@EnableDiscoveryClient
public class PayMain8001 {

    public static void main(String[] args) {
        SpringApplication.run(PayMain8001.class, args);
    }

}
